<% if (locals.messages) { %>
  <% messages.forEach(function(message) { %>
    <p class='<%= message.type %>'><%= message.string %></p>
  <% }) %>
  <% removeMessages() %>
<% } %>
